From a02db50df71eb0275cfd1888ee9a724c243b1f50 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Sun, 28 Feb 2016 11:16:05 +0100 Subject: [PATCH] build: preserve original Cargo.lock for clean --- debian/rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/rules b/debian/rules index 3df0f716e..402dd0726 100755 --- a/debian/rules +++ b/debian/rules @@ -24,6 +24,7 @@ DEPSDIR := $(CURDIR)/deps dh $@ --with bash-completion override_dh_auto_configure: + cp -a $(CURDIR)/Cargo.lock $(CURDIR)/.Cargo.lock.orig # Prepare a fake registry by packing all deps ./debian/cargo-vendor-pack.py @@ -65,6 +66,7 @@ endif mv $(CURDIR)/.deps $(DEPSDIR) override_dh_auto_clean: + -mv $(CURDIR)/.Cargo.lock.orig $(CURDIR)/Cargo.lock -mv $(CURDIR)/.deps $(DEPSDIR) -$(RM) -r $(CURDIR)/deps/*.rlib \ $(CURDIR)/deps/build_script* \ -- 2.30.2